zynqmp: Put pm_secure_lock in coherent memory region
authorStefan Krsmanovic <[email protected]>
Fri, 20 May 2016 13:51:08 +0000 (15:51 +0200)
committerSoren Brinkmann <[email protected]>
Tue, 24 May 2016 17:18:07 +0000 (10:18 -0700)
DEFINE_BAKERY_LOCK() macro is used to put lock in coherent memory region.
ARM Trusted Firmware design guide, chapter 11 states that bakery_lock data
structures should be allocated in coherent memory region because it is
accessed by multiple CPUs with mismatched shareability, cacheability and
memory attributes.

Signed-off-by: Stefan Krsmanovic <[email protected]>
Signed-off-by: Soren Brinkmann <[email protected]>
plat/xilinx/zynqmp/pm_service/pm_ipi.c

index 8975f42fc13c0d0e9561170e3f70d24c8f32a45b..c3e7ccb505b1fbf71162666fd94379286a275b7b 100644 (file)
@@ -81,7 +81,7 @@
 
 #define IPI_APU_MASK           1U
 
-static bakery_lock_t pm_secure_lock;
+DEFINE_BAKERY_LOCK(pm_secure_lock);
 
 const struct pm_ipi apu_ipi = {
        .mask = IPI_APU_MASK,